import { configDefaults, defineConfig } from "vitest/config";

export default defineConfig({
  test: {
    environment: "node",
    exclude: [...configDefaults.exclude, "e2e/*"],
    reporters: ["verbose", "junit"],
    includeSource: ["src/**/*.{ts}"],
    setupFiles: ["./vitest.setup.ts"],
    coverage: {
      include: ["src/**/*.{ts}"],
      provider: "v8",
    },
    outputFile: {
      junit: "./junit-report.xml",
    },
  },
});
